// 引入axios | 路径配置
import { AJAX_PATH } from "@/services/config.js";

// 导入 封装的 有权限请求
import { HTTP_LIMITED } from "@/utils/axios.js";

class CunHuoXinXiHttp extends HTTP_LIMITED {
    searchInventoryByWareId(data) {//存货信息档案-根据存货名称模糊搜索
        return this._get(AJAX_PATH.searchInventoryByWareId + data)
    }
    getcreateInventoryNo(data) {//用于根据存货分类自动生成存货编码
        return this._get(AJAX_PATH.getcreateInventoryNo + data)
    }

    getqueryBatchByTypeId(data) {//存货分类与仓库关系-根据存货分类id获取仓库ID
        return this._get(AJAX_PATH.getqueryBatchByTypeId + data)
    }
    saveBatch(data) {//存货分类与仓库关系-保存存货分类和仓库关系
        return this._post(AJAX_PATH.saveBatch , data)
    }

    duplicateCheck(data) {//重复校验
        return this._get(AJAX_PATH.duplicateCheck + data)
    }

    InventoryInformation(data) {// 存货信息档案-保存
        return this._post(AJAX_PATH.InventoryInformation, data);
    }
    VariousInventoryInformation(data) {// 存货信息档案-返回存货编码与名称、规格型号、单位
        return this._get(AJAX_PATH.VariousInventoryInformation, data);
    }
    GetInventoryInformationList(data) {// 获取存货信息-列表
        return this._get(AJAX_PATH.GetInventoryInformationList + data);
    }
    InventoryexportExcel(data) {// 存货信息档案-用于导出表格
        return this._get(AJAX_PATH.InventoryexportExcel + data);
    }
    getInventoryTypeGoodsInfo(data) {// 获取相应存货分类下物品信息
        return this._get(AJAX_PATH.getInventoryTypeGoodsInfo + data);
    }
    UpdateInventoryInformation(data) {//存货信息档案-修改
        return this._post(AJAX_PATH.UpdateInventoryInformation, data);
    }
    DeleteInventoryInformation(data) {//库存组织档案-删除
        return this._get(AJAX_PATH.DeleteInventoryInformation + data);
    }
    GetUserSectionInfoByToken(data) {// 根据TOKEN获取用户的部分信息
        return this._get(AJAX_PATH.GetUserSectionInfoByToken + data);
    }
    getAllNumberName(data) {// 返回所有的仓库编码、仓库名称
        return this._get(AJAX_PATH.getAllNumberName, data);
    }


}

export { CunHuoXinXiHttp };
